package result;

public class ScoreList {
    private Score[] scores;
    private int size;
    public ScoreList()
    {
        scores=new Score[100];
        size=0;
        scores[0]=new Score(1,"张三","2019001","C语言程序设计",90);
        scores[1]=new Score(2,"张四","2019002","C语言程序设计",80);
        scores[2]=new Score(3,"李四","2019003","数据结构",80);
        scores[3]=new Score(4,"王五","2019004","计算机网络",70);
        scores[4]=new Score(5,"赵六","2019005","编译原理",60);
        size=5;
    }

    public Score getScores(int pos) {
        return scores[pos];
    }

    public Score[] getScores() {
        return scores;
    }

    public Score setScores(int pos,Score score) {
        return scores[pos] = score;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
